From e0e3b8f64730f3ee167d29aa5ab18902fba4f416 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 9 Jun 2015 15:54:53 +0200 Subject: [PATCH] arinc653: don't leak hypervisor stack contents through XEN_SYSCTL_SCHEDOP_getinfo MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Note that due to XSA-77 this is not a security issue. Reported-by: "栾尚聪(好风)" Signed-off-by: Jan Beulich Acked-by Robert VanVossen --- xen/common/sched_arinc653.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/common/sched_arinc653.c b/xen/common/sched_arinc653.c index 819b869193..cff5da9d99 100644 --- a/xen/common/sched_arinc653.c +++ b/xen/common/sched_arinc653.c @@ -705,6 +705,7 @@ a653sched_adjust_global(const struct scheduler *ops, rc = arinc653_sched_set(ops, &local_sched); break; case XEN_SYSCTL_SCHEDOP_getinfo: + memset(&local_sched, -1, sizeof(local_sched)); rc = arinc653_sched_get(ops, &local_sched); if ( rc ) break; -- 2.30.2